
<template class="container">
    <WindowTitleBar title="测试"></WindowTitleBar>

    <div class="btn" onmousedown=OnMouseDown1>无参函数获取事件对象</div>
    <div class="btn" onmousedown="OnMouseDown2('self arg1', 'self arg2', ...)">带参函数获取事件对象</div>
</template>

<script type="text/lua">
RegisterComponent("WindowTitleBar", "%vue%/Components/WindowTitleBar.html");

function OnMouseDown1(event)
    print(event == nil, event == GetEvent());
end

function OnMouseDown2(arg1, arg2, event, ...)
    print(arg1, arg2, event == nil, event == GetEvent());
end

function OnReady()
end
</script>

<style>
.container {
    height: 100%; 
    width: 100%; 
    padding: 0px 2px 2px 2px;
    /* border: 1px solid #ffffff; */
    background: url(Texture/Aries/Creator/keepwork/Window/dakuang_32bits.png#0 0 440 93:378 43 33 44);
}
</style>